<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%--
  Created by IntelliJ IDEA.
  User: dingwenjiang
  Date: 2019-05-10
  Time: 20:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>top 10 news</title>
</head>
<body>
    <h1>新闻数量：${fn:length(news)}</h1>
    <c:forEach items="${news}" var="item">
        <div style="display: flex;flex-direction: row;align-items: baseline;">
            <div style="font-size: 30px; color: red;">${item.getNewsTitle()}</div>
            <div style="font-size: 15px; color: gray;">${item.getNewsDesc()}</div>
        </div>
    </c:forEach>

</body>
</html>
